package com.api.shopapi.service.impl;

import com.api.shopapi.entity.CashierCartBusiness;
import com.api.shopapi.mapper.CashierCartBusinessMapper;
import com.api.shopapi.service.CashierCartBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("CashierCartBusinessServiceImplOne")
public class CashierCartBusinessServiceImpl implements CashierCartBusinessService {

    @Autowired
    private CashierCartBusinessMapper cashierCartBusinessMapper;

    @Override
    public int insert(CashierCartBusiness cashierCartBusiness) {
        return cashierCartBusinessMapper.insert(cashierCartBusiness);
    }

    @Override
    public int update(CashierCartBusiness cashierCartBusiness) {
        return cashierCartBusinessMapper.update(cashierCartBusiness);
    }

    @Override
    public int delete(String cashierCartBusinessCode) {
        return cashierCartBusinessMapper.delete(cashierCartBusinessCode);
    }

    @Override
    public List<CashierCartBusiness> getList() {
        return cashierCartBusinessMapper.getList();
    }

    @Override
    public List<CashierCartBusiness> getListByCashierCartCode(String cashierCartCode){
        return cashierCartBusinessMapper.getListByCashierCartCode(cashierCartCode);
    }

    @Override
    public
    List<CashierCartBusiness> getListByCashierCartCodeWillSubmit(String cashierCartCode){
        return cashierCartBusinessMapper.getListByCashierCartCodeWillSubmit(cashierCartCode);
    }

    @Override
    public CashierCartBusiness getByCashierCartBusinessCode(String cashierCartBusinessCode) {
        return cashierCartBusinessMapper.getByCashierCartBusinessCode(cashierCartBusinessCode);
    }

    @Override
    public
    CashierCartBusiness getByBusinessCodeUserCodeWillSubmit(String businessCode, String userCode){
        return cashierCartBusinessMapper.getByBusinessCodeUserCodeWillSubmit(businessCode,userCode);
    }

    @Override
    public
    List<CashierCartBusiness> getListByBusinessCodeUserCodeWaitSubmit(String businessCode, String userCode){
        return cashierCartBusinessMapper.getListByBusinessCodeUserCodeWaitSubmit(businessCode,userCode);
    }

}
